package com.o2o.model.topic;

import java.util.List;

import org.springframework.stereotype.Component;

import com.o2o.base.BaseModel;

@Component
public class Category extends BaseModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = -121845122592209953L;

	/**
	 * 产品分类 类
	 */
	
	
	private long id;
	
	private String name;
	
	private long pid;
	
	private int status; //1为正常显示，0为不显示
	
	private int orderInt;//排序
	
	private int categoryNumber; //每个category七位数，第一位是一级分类，1为标准商品，2为本地服务
															//第二三位是二级分类,四五位是三级分类，六七位是四级分类
	
	private int level;//分类等级
	
	private List<Category> subCates;
	
	

	

	public long getId() {
		return id;
	}
	
	public Category() {
		super();
	}

	public List<Category> getSubCates() {
		return subCates;
	}
	public void setSubCates(List<Category> subCates) {
		this.subCates = subCates;
	}
	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getOrderInt() {
		return orderInt;
	}

	public void setOrderInt(int orderInt) {
		this.orderInt = orderInt;
	}

	public int getCategoryNumber() {
		return categoryNumber;
	}

	public void setCategoryNumber(int categoryNumber) {
		this.categoryNumber = categoryNumber;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", pid=" + pid
				+ ", status=" + status + ", orderInt=" + orderInt
				+ ", categoryNumber=" + categoryNumber + ", level=" + level
				+ ", ChildCates=" + subCates + "]";
	}
	
	

	

}
